package com.czk.springcloud.service;

import com.czk.springcloud.entity.CommonResult;
import com.czk.springcloud.entity.Payment;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/9/23 11:02
 */
@Component
@Slf4j
public class SentinelPaymentFeignServiceImpl implements PaymentFeignService {
    @Override
    public CommonResult<Payment> getPaymentById(Long id) {
        log.info("进入降级方法了");
        return new CommonResult<>(500, "出现错误了");
    }

    @Override
    public String paymentFeignTimeout() {
        return null;
    }

    @Override
    public Payment payment() {
        return null;
    }

    @Override
    public Payment selectByCode(String accountCode) {
        return null;
    }
}
